import http from "@/utils/other/fetch";


// 获取我的账户列表
export function myAmount() {
  return http.post("/Sale/Amount/myAmount");
}

// 获取提现记录列表
export function withdrawalLog(params) {
  return http.post("/Sale/Amount/withdrawalLog", params);
}

// 获取流水记录列表
export function amountLog(params) {
  return http.post("/Sale/Amount/amountLog", params);
}

// 获取结算中心列表
export function settleList(params) {
  return http.post("/Sale/Amount/settleList", params);
}

// 获取提现记录
export function withdrawalList(params) {
  return http.post("/Sale/Withdrawal/withdrawalList", params);
}

// 申请提现
export function withdrawalApply(amount) {
  return http.post("/Sale/Withdrawal/withdrawalApply",  { amount }, true);
}

// 提现信息1
export function withdrawalInfo(withdrawal_id) {
  return http.get("/Sale/Withdrawal/withdrawalInfo", {withdrawal_id});
}
// 提现信息
export function getPayeeInfo() {
  return http.get("/Sale/Withdrawal/getPayeeInfo");
}

// 获取结算详情
export function getSettleData(id) {
  return http.post("/Sale/Amount/getSettleData", { lease_id: id });
}

// 点击结算
export function orderSettle(id) {
  return http.post("/Sale/Amount/orderSettle",{ lease_id: id }, true);
}

// 结算中心导出
export function orderLeaseSettleExport(params) {
  return http.export(
    "/Sale/Amount/orderLeaseSettleExport",
    params,
    "账单结算列表"
  );
}